﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace web_mvc.dto
{
    /*

     https://learn.microsoft.com/zh-cn/dotnet/framework/data/adonet/sql/linq/how-to-represent-tables-as-classes
     */
    [Table(Name ="user")]
    internal class User
    {
        public User(int id, string name)
        {
            this.id = id;
            this.name = name;
        }

        public User() { 
        }

        [Column(IsPrimaryKey =true)]
        public int id { get; set; }

        [Column]
        public string name { get; set; }


    }
}
